/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

/**
 *
 * @author Antoine Boulinguez et Shyn-Yuan Cheng
 */
public class ClientMessage {
    
    public static void sendClientMessage(String message, FacesMessage.Severity severity)
    {
        FacesMessage fm = new FacesMessage(message);
        fm.setSeverity(severity);
        FacesContext.getCurrentInstance().addMessage(message, fm);
    }
    
}
